package com.insigma.business.qrcode.intell._consumer.impl;

import com.insigma.business.qrcode.common.template.BasePagingResponse;
import com.insigma.business.qrcode.intell._consumer.SceneConsumer;
import com.insigma.business.qrcode.intell._provider.CommonPolicyProvider;
import com.insigma.business.qrcode.intell._provider.CompanyEntryApplyProvider;
import com.insigma.business.qrcode.intell._provider.UserProvider;
import com.insigma.business.qrcode.intell.dto.*;
import com.insigma.business.qrcode.job.dto.JobCandidateResumeDTO;
import com.insigma.business.qrcode.job._provider.JobCandidateResumeProvider;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class SceneConsumerImpl implements SceneConsumer {

    @Resource
    CommonPolicyProvider commonPolicyProvider;


    @Resource
    private JobCandidateResumeProvider jobCandidateResumeProvider;


    @Resource
    private CompanyEntryApplyProvider companyEntryApplyProvider;

    @Resource
    UserProvider userProvider;
    @Override
    public BasePagingResponse<List<CommonPolicyDTO>> searchCommonPolicy(CommonPolicySearchRequest commonPolicySearchRequest) {
        return commonPolicyProvider.searchCommonPolicy(commonPolicySearchRequest);
    }

    @Override
    public BasePagingResponse<List<UserDTO>> searchUser(UserSearchRequest userSearchRequest) {
        return userProvider.searchUser(userSearchRequest);

    }

    @Override
    public JobCandidateResumeDTO getMyResume(String userId) {
        return jobCandidateResumeProvider.getMyResume(userId).getDto();

    }

    @Override
    public BasePagingResponse<List<CompanyEntryApplyDTO>> searchCompanyEntryApply(CompanyEntryApplySearchRequest companyEntryApplySearchRequest) {
        return companyEntryApplyProvider.searchCompanyEntryApply(companyEntryApplySearchRequest);

    }
}
